//
//  AppDelegate.m
//  TabBarVCDemo
//
//  Created by jinyu on 2018/3/28.
//  Copyright © 2018年 jinyu. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [[UINavigationBar appearance]setBackgroundColor:[UIColor whiteColor]];
    [UINavigationBar appearance].translucent = NO;
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    self.window.rootViewController = self.tableBar;
    
  
    return YES;
}

-(TableBarVC * )tableBar{
    
    if(!_tabBar){
        
        _tabBar = [[TableBarVC alloc]init];
        _tabBar.selectedIndex = 2;
        
    }
    
    return _tabBar;
}

@end
